<template>
	<view class="eatpage">
		<view class="title">
			专家组生活方式干预医嘱建议任务清单
		</view>
		<view class="line" @click="selectrenwu(1)">
			<view class="content">
				基础执行任务清单
			</view>
			<view class="iconfont icon-bugaoxing">
				
			</view>
		</view>
		<view class="line" @click="selectrenwu(2)">
			
			<view class="content">
				进阶执行任务清单
			</view>
			<view class="iconfont icon-ziyuan">
				
			</view>
		</view>
		<view class="line" @click="selectrenwu(3)">
			<view class="content">
				完全执行任务清单
			</view>
			<view class="iconfont icon-gaoxing">
				
			</view>
		</view>
		<view class="winpage" v-if="winshow">
			<view class="listwin">
				<view class="wintitleline">
					{{win==1?'基础':win==2?'进阶':'完全'}}执行任务清单
					<view class="iconfont icon-guanbi" @click="winshow=false">
						
					</view>
				</view>
				<view class="listbox">
					<view class="itemlist act">
						<view class="dian">
							
						</view>
						<view class="box">
							<view class="txt">
								遵医嘱创建用药计划
							</view>
							<view class="btn">
								已完成
							</view>
						</view>
					</view>
					<view class="itemlist" @click="jiluyinshi">
						<view class="dian">
							
						</view>
						<view class="box">
							<view class="txt">
								记录饮食日志
							</view>
							<view class="btn">
								未完成
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				winshow:false,
				win:''
			}
		},
		methods: {
			jiluyinshi(){
				uni.navigateTo({
					url:'/pagesA/changjing/changjing'
				})
			},
			selectrenwu(e){
				this.winshow=true
				this.win=e
			},
		}
	}
</script>

<style lang="less" scoped>
.eatpage{
	width: 750rpx;
	height: 100vh;
	box-sizing: border-box;
	background: linear-gradient(180deg, rgba(242,248,255,1) 0%,rgba(255,255,255,0) 76%);
	.title{
		text-align: center;
		font-size: 60rpx;
		padding-top: 160rpx;
		width: 80%;
		margin: auto;
	}
	.line{
		width: 80%;
		height: 120rpx;
		margin: 40rpx auto;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		background-color: #F9EEFF;
		border-radius: 20rpx;
		padding: 0 30rpx;
		.content{
			margin-right: 80rpx;
			font-size: 38rpx;
			
			color: #aba9ac;
		}
		.iconfont{
			color: #EDD8FF;
			font-weight: bold;
			margin-left: 100rpx;
			font-size: 80rpx;
		}
	}
	.winpage{
		width: 100%;
		height: 100vh;
		background-color: rgba(0, 0, 0, 0.5);
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		.listwin{
			width: 700rpx;
			background: white;
			height: 100%;
			margin-left: 50rpx;
			.wintitleline{
				box-sizing: border-box;
				width: 100%;
				height: 70rpx;
				line-height: 70rpx;
				border-bottom: 1px solid gray;
				font-size: 34rpx;
				font-weight: bold;
				position: relative;
				padding-left: 30rpx;
				.iconfont{
					position: absolute;
					right: 20rpx;
					top: 10rpx;
					font-weight: bold;
					font-size: 40rpx;
				}
			}
			.listbox{
				width: 100%;
				height: 90%;
			
				box-sizing: border-box;
				padding: 30rpx;
				.act{
					.dian{
						background-color: #BD00FF !important;
					}
					.box{
						background-color: #BD00FF !important;
						color: white !important;
					}
				}
				
				.itemlist{
					width:  100% ;
					box-sizing: border-box;
					height: 70rpx;
					line-height: 70rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-top: 50rpx;
					.dian{
						width: 16rpx;
						height: 16rpx;
						border-radius: 50%;
						background-color: #9F9F9F ;
					}
					.box{
						width: 90%;
						height: 70rpx;
						border-radius: 35rpx;
						background-color:#ECECEC ;
						line-height: 70rpx;
						color: #101010 ;
						position: relative;
						text-align: center;
						.btn{
							position: absolute;
							width: 110rpx;
							height: 60rpx;
							border-radius: 25rpx;
							background-color: #BD00FF ;
							color: white;
							font-size: 30rpx;
							text-align: center;
							line-height: 60rpx;
							right: 8rpx;
							top: 4rpx;
						}
					}
				}
				
			}
		}
	}
}
</style>
